package com.ruoyi.caiwu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.caiwu.mapper.CurrencyTableMapper;
import com.ruoyi.caiwu.domain.CurrencyTable;
import com.ruoyi.caiwu.service.ICurrencyTableService;

/**
 * 币别表Service业务层处理
 *
 * @author ruoyi
 * @date 2025-02-25
 */
@Service
public class CurrencyTableServiceImpl implements ICurrencyTableService
{
    @Autowired
    private CurrencyTableMapper currencyTableMapper;

    /**
     * 查询币别表
     *
     * @param currencyId 币别表主键
     * @return 币别表
     */
    @Override
    public CurrencyTable selectCurrencyTableByCurrencyId(Long currencyId)
    {
        return currencyTableMapper.selectCurrencyTableByCurrencyId(currencyId);
    }

    /**
     * 查询币别表列表
     *
     * @param currencyTable 币别表
     * @return 币别表
     */
    @Override
    public List<CurrencyTable> selectCurrencyTableList(CurrencyTable currencyTable)
    {
        return currencyTableMapper.selectCurrencyTableList(currencyTable);
    }

    /**
     * 新增币别表
     *
     * @param currencyTable 币别表
     * @return 结果
     */
    @Override
    public int insertCurrencyTable(CurrencyTable currencyTable)
    {
        return currencyTableMapper.insertCurrencyTable(currencyTable);
    }

    /**
     * 修改币别表
     *
     * @param currencyTable 币别表
     * @return 结果
     */
    @Override
    public int updateCurrencyTable(CurrencyTable currencyTable)
    {
        return currencyTableMapper.updateCurrencyTable(currencyTable);
    }

    /**
     * 批量删除币别表
     *
     * @param currencyIds 需要删除的币别表主键
     * @return 结果
     */
    @Override
    public int deleteCurrencyTableByCurrencyIds(Long[] currencyIds)
    {
        return currencyTableMapper.deleteCurrencyTableByCurrencyIds(currencyIds);
    }

    /**
     * 删除币别表信息
     *
     * @param currencyId 币别表主键
     * @return 结果
     */
    @Override
    public int deleteCurrencyTableByCurrencyId(Long currencyId)
    {
        return currencyTableMapper.deleteCurrencyTableByCurrencyId(currencyId);
    }
}
